package com.my.mall.manage.evaluate.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.my.mall.manage.evaluate.vo.EvaluateManageVo;

public interface EvaluateManageDao {

	/*List<EvaluateManageVo> selectEvaluateList(@Param("iDisplayStart") int iDisplayStart,
			@Param("iDisplayLength") int iDisplayLength);

	int selectEvaluateCount();*/

	List<EvaluateManageVo> selectEvaluateListByParameter(@Param("goodsId") int goodsId, @Param("userId") int userId,
			@Param("star") int star, @Param("isUseful") int isUseful, @Param("iDisplayStart") int iDisplayStart,
			@Param("iDisplayLength") int iDisplayLength);

	int selectEvaluateCountByParameter(@Param("goodsId") int goodsId, @Param("userId") int userId,
			@Param("star") int star, @Param("isUseful") int isUseful);

	EvaluateManageVo getEvaluate(int id);

	int updateEvaluateReply(@Param("id") int id, @Param("star") int star, @Param("isUseful") int isUseful,
			@Param("reply") String reply);

}